package com.megalith.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @Description TODO
 * @Author lfp
 * @Date 2022/7/16
 * @Version 1.0
 */
@Data
@ApiModel(value = "CandidateProcessDTO",description = "候选人流程DTO")
public class CandidateProcessDTO {
    @ApiModelProperty(value = "候选人流程定义Key",required = true)
    @NotBlank(message = "processDefinitionKey 不能为空")
    private String processDefinitionKey;

    @ApiModelProperty(value = "请假员工",required = true)
    @NotBlank(message = "staff 不能为空")
    private String staff;

    @ApiModelProperty(value = "请假天数",required = true)
    @Min(value = 1,message = "days 必须为正整数")
    private int days;

}
